﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace INSTA.Concepts.CreateEvents
{
    /// <summary>
    /// Classe contenant les informations sur une Person
    /// transmises au code client lors du déclenchement
    /// de l'event "NameChanged" d'une Person.
    /// </summary>
    public class PersonEventArgs : EventArgs
    {
        private string _newName;
        private string _firstName;

        public PersonEventArgs(string newName, string firstName)
        {
            _newName    = newName;
            _firstName  = firstName;
        }

        /// <summary>
        /// Gets the new name.
        /// </summary>
        public string NewName
        {
            get { return _newName; }
        }

        /// <summary>
        /// Gets the first name.
        /// </summary>
        public string FirstName
        {
            get { return _firstName; }
            
        }
    }
}
